// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags example
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
var mySettings = {
	markupSet: [
		{name:'Bold', openWith:'[b]', closeWith:'[/b]', className:"fonts-bold" },
		{name:'Italic', openWith:'[i]', closeWith:'[/i]', className:"fonts-italic" },
		{name:'Underline', openWith:'[u]', closeWith:'[/u]', className:"fonts-underline" },
		{separator:'---------------' },
		{name:'Size', openWith:'[size=[![Text size (unit: %)]!]]', closeWith:'[/size]', className:"fonts-size",
		dropMenu :[
			{name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
			{name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
			{name:'Small', openWith:'[size=75]', closeWith:'[/size]' }
		]},
		{name:'Colors', openWith:'[color=[![Color, #000000 or black]!]]', closeWith:'[/color]', className:"fonts-colors",
		dropMenu: [
			{name:'Yellow', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" },
			{name:'Orange', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" },
			{name:'Red', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" },
			{name:'Blue', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" },
			{name:'Purple', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" },
			{name:'Green', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" },
			{name:'White', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" },
			{name:'Gray', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" },
			{name:'Black', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" }
		]},
		{separator:'---------------' },		
		{name:'Picture', replaceWith:'[img][![Url]!][/img]', className:"picture" },
		{name:'Link', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...', className:"link" },
		{separator:'---------------' },
		{name:'Quotes', openWith:'[quote]', closeWith:'[/quote]', className:"content-quotes" },
		{name:'Code', openWith:'[code]', closeWith:'[/code]', className:"source-code" }, 
		{separator:'---------------' },
		{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } }
	]
};